<%-- 自定义实体添加页面 --%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/views/common/taglibs.jsp" %>

<!DOCTYPE>
<html>
<head>
    <!-- 引入通用js、css文件(xiaogq) -->
    <meta name="decorator" content="bootstrap"/>
    <link rel="stylesheet" type="text/css" href="${ctx}/css/common/operation/sys_operation.css"/>
    <link rel="stylesheet" type="text/css" href="${ctx}/css/common/form/form_view.css"/>
</head>
<body>
    <!-- 加载列表操作 -->
    <div class="button_list">
        <jsp:include page="/views/common/operation/sys_operation.jsp" flush="true" />
        <a href="javascript:;" id="${id}" title="${entity.inchinese}" onclick="oper_sys_permission(this)">
            <span class="span_button">
                <span><img src="${ctx}/image/common/operation/oper_sysPermission.png"></span>
                <span name="buTitle">系统权限</span>
            </span>
        </a>
        <a href="javascript:;" id="${id}" title="${entity.inchinese}" onclick="oper_crm_permission(this)">
            <span class="span_button">
                <span><img src="${ctx}/image/common/operation/oper_crmPermission.png"></span>
                <span name="buTitle">业务权限</span>
            </span>
        </a>
        <a href="javascript:;" id="${id}" title="${entity.inchinese}" onclick="oper_opration_permission(this)">
            <span class="span_button">
                <span><img src="${ctx}/image/common/operation/oper_operPermission.png"></span>
                <span name="buTitle">操作权限</span>
            </span>
        </a>
        <a href="javascript:;" id="${id}" title="${entity.inchinese}" onclick="oper_data_permission(this)">
            <span class="span_button">
                <span><img src="${ctx}/image/common/operation/oper_dataPermission.png"></span>
                <span name="buTitle">数据权限</span>
            </span>
        </a>
    </div>
    <input type="hidden" id="rowName" value="${rowName}"/>
    <div class="content row">
        <h3>基础信息</h3>
        <hr>
        <div class="col-lg-9 col-md-8">
            <table class="table right-web">
                <tr>
                    <td class="th-web col-lg-2 col-md-2">名称:</td>
                    <td class="td-web col-lg-3 col-md-3">
                        <label>${dataMap.name_varchar}</label>
                    </td>
                    <td class="th-web col-lg-2 col-md-2">是否是管理员:</td>
                    <td class="td-web col-lg-3 col-md-3">
                        <label>${dataMap.isadmin_bit}</label>
                    </td>
                </tr>
                <tr>
                    <td class="th-web col-lg-2 col-md-2">可登录模块:</td>
                    <td class="td-web col-lg-3 col-md-3">
                        <label>${dataMap.loginModule_varchar}</label>
                    </td>
                    <td class="th-web col-lg-2 col-md-2">描述:</td>
                    <td class="td-web col-lg-3 col-md-3">
                        <label>${dataMap.description_varchar}</label>
                    </td>
                </tr>
            </table>
        </div>
    </div>

    <div class="related_emp_div content row">
        <h3>员工相关信息</h3>
        <hr>
        <table id="related_emp_table"
               data-striped="true"
               data-toggle="table"
               data-show-columns="true"
               data-cookie="false"
               data-pagination="true"
               data-search="true"
               data-show-refresh="true"
               data-url="${ctx}/Employee/queryRoleRelateEmpAll.do?tableCode=3&fields=${fields}&mutilSearch=[{name: pk_t_1_1, condition: eq, value: '${id}'}]"
               data-side-pagination="server"
               data-checkbox-header="true"
               data-page-list="[10,20,30,50]"
               class="table">
            <thead>
            <tr>
                ${columns}
            </tr>
            </thead>
        </table>
    </div>
    <!-- 引入出来表格列头操作按钮方法js(xiaogq) -->
    <script type="text/javascript" src="${ctx}/js/system/operation/show_colOperation.js"></script>
    <!-- 引入角色js(xiaogq) -->
    <script type="text/javascript" src="${ctx}/js/system/organization/role.js"></script>
</body>
</html>